{%- liquid
  case setting.section_outer_top_space  
    when 5
      assign section_margin_top = 'mt-4 mt-md-5'
    when 6
      assign section_margin_top = 'mt-5 mt-md-6'
    when 7
      assign section_margin_top = 'mt-5 mt-md-7'
    when 8
      assign section_margin_top = 'mt-4 mt-md-8' 
    when 9
      assign section_margin_top = 'mt-6 mt-md-9'
    when 10
      assign section_margin_top = 'mt-6 mt-md-10'
    when 11
      assign section_margin_top = 'mt-7 mt-md-11'
    when 12
      assign section_margin_top = 'mt-8 mt-md-12'
    when 13
      assign section_margin_top = 'mt-8 mt-md-13'
    else
      assign section_margin_top = 'mt-' | append: setting.section_outer_top_space
  endcase

  case setting.section_outer_bottom_space 
    when 5
      assign section_margin_bottom = 'mb-4 mb-md-5'
    when 6
      assign section_margin_bottom = 'mb-5 mb-md-6'
    when 7
      assign section_margin_bottom = 'mb-5 mb-md-7'
    when 8
      assign section_margin_bottom = 'mb-4 mb-md-8' 
    when 9
      assign section_margin_bottom = 'mb-6 mb-md-9'
    when 10
      assign section_margin_bottom = 'mb-6 mb-md-10'
    when 11
      assign section_margin_bottom = 'mb-7 mb-md-11'
    when 12
      assign section_margin_bottom = 'mb-8 mb-md-12'
    when 13
      assign section_margin_bottom = 'mb-8 mb-md-13'
    else
      assign section_margin_bottom = 'mb-' | append: setting.section_outer_bottom_space
  endcase

  case setting.section_inner_top_space  
    when 5
      assign section_padding_top = 'pt-4 pt-md-5'
    when 6
      assign section_padding_top = 'pt-5 pt-md-6'
    when 7
      assign section_padding_top = 'pt-5 pt-md-7'
    when 8
      assign section_padding_top = 'pt-4 pt-md-8' 
    when 9
      assign section_padding_top = 'pt-6 pt-md-9'
    when 10
      assign section_padding_top = 'pt-6 pt-md-10'
    when 11
      assign section_padding_top = 'pt-7 pt-md-11'
    when 12
      assign section_padding_top = 'pt-8 pt-md-12'
    when 13
      assign section_padding_top = 'pt-8 pt-md-13'
    else
      assign section_padding_top = 'pt-' | append: setting.section_inner_top_space
  endcase

  case setting.section_inner_bottom_space  
    when 5
      assign section_padding_bottom = 'pb-4 pb-md-5'
    when 6
      assign section_padding_bottom = 'pb-5 pb-md-6'
    when 7
      assign section_padding_bottom = 'pb-5 pb-md-7'
    when 8
      assign section_padding_bottom = 'pb-4 pb-md-8' 
    when 9
      assign section_padding_bottom = 'pb-6 pb-md-9'
    when 10
      assign section_padding_bottom = 'pb-6 pb-md-10'
    when 11
      assign section_padding_bottom = 'pb-7 pb-md-11'
    when 12
      assign section_padding_bottom = 'pb-8 pb-md-12'
    when 13
      assign section_padding_bottom = 'pb-8 pb-md-13'
    else
      assign section_padding_bottom = 'pb-' | append: setting.section_inner_bottom_space
  endcase
-%}
{% if show_padding %}{{ section_padding_bottom }} {{ section_padding_top }}{% else %}{{ section_margin_bottom }} {{ section_margin_top }}{% endif %}
